package com.xiaoq.matrix.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xiaoq.matrix.entity.TourismContentEntity;
import com.xiaoq.matrix.repository.ITourismContentRepository;
import com.xiaoq.matrix.service.ITourismContentService;

@Service
public class TourismContentServiceImpl implements ITourismContentService {

	@Autowired
	private ITourismContentRepository tourismContentRep;
	
	@Override
	public TourismContentEntity save(TourismContentEntity tourismContent) {
		return tourismContentRep.save(tourismContent);
	}

	@Override
	public TourismContentEntity findById(String id) {
		return tourismContentRep.findById(id);
	}

}
